pp108 : Generating a Web Service Operation on a Decision Table

Generating a Web Service Operation on a Decision Table

This topic describes the procedure to generate a Web service operation on a decision table.

Before you begin this task:
You must already have built a decision table to generate a Web service operation.

You can generate Web service operations on a decision table in Process Platform using the Web service definition wizard and use them in a process or a web page to offer specific functionality to users.

Note:
Method Sets are being referred as Web service Interfaces and Methods are referred as Web service Operations.

  1. From the Workspace Documents (Explorer), right-click your project and select New > Other. The New Process Platform Document window appears.
  2. Click (Web Service) from the New Process Platform Document window. The Untitled Web Service - Web Service wizard is displayed.
  3. Click Select the Source drop-down box, select Decision Table from the list. A Namespace field is added to the page.
  4. Type the appropriate name and description for the Web service operation in the Name and Description fields of the wizard.
  5. Type the namespace of the Decision Table in the Namespace field and click Next. The next page on the wizard is displayed.
  6. Click next to the Select a Decision Table field, select the required decision table from the Select the Decision Table dialog box that appears and click OK. The name of the selected decision table is displayed in the Select a Decision Table field.
  7. Type the names for Web service interface and Web service operations in the Web service Interface Name and Web service Operations Name in the respective fields of the Web services Interface Information group box and click Finish. A Web service Properties page appears, displaying the target namespace, its prefix and the location URI in the Target Namespace, TNS Prefix, and Location URI fields.

The decision table can now be used as a Web service operation and is displayed under Workspace Documents (Explorer) > <solution> > <project> folder.

Note:

  • Right-click <Webservice operation> in Workspace Documents (Explorer) and click Publish to Organization to make it available to an organization.
    Note: If you do not specify the organization, it is published to the default organization that is set for the authenticated user.
    • Open Workspace Documents (Explorer) > <solution> > <project> >, and double-click the just created Web service Interface. In the WebService Binding Properties pane that appears, select Rule Management from the Service Group drop-down list. This will bind the Web service interface to the Service group.
    • Alternatively, you can attach the Web service to the Rule Management Service Group at runtime. Refer to attach the Web service Interface to a Service Group|Attaching Web Service Interfaces to Service Groups|This topic describes the procedure to attach Web service interfaces to Service Groups. for more information on attaching a Web service interface to a service group.


Related tasks

Attaching Web Services to a Business Process Model
Creating XML Schema Fragments
Creating an Object Template
Building a Decision Table
Creating a Condition Template
Creating an Action Template
Testing Rules Using Rule Test Tool

Related reference

Rule Actions